Skip to content

Publish the MySQL migrations and restore resetInteractidonsByIds() - #9

Merged
phatshambler merged 1 commit into
developfrom
fix/store-mysql-migrations-and-alias
Nov 17, 2026
Merged

phatshambler merged 1 commit into
developfrom
fix/store-mysql-migrations-and-alias

Conversation

@phatshambler

Copy link
Copy Markdown
Member

Two problems of 0.0.45 that apps hit when updating (seen on lni-votes).

@cuecue/store-mysql ships its migrations

"files": ["dist"] left migrations/ out of the npm package, so apps couldn't run 20261117120000-extra.js (the extra JSON column) from node_modules, and the 0.0.45 changelog's "db-migrate up with the package's migrations" didn't work.

  • files is now ["dist", "migrations"]. npm pack --dry-run -w @cuecue/store-mysql lists the 4 migrations and config.json; test/packages.test.js checks that every file of migrations/ and the README are packed.

  • New packages/store-mysql/README.md: settings (options and MYSQL_* variables) and migrations. An app runs:

    npx db-migrate up --migrations-dir node_modules/@cuecue/store-mysql/migrations --config node_modules/@cuecue/store-mysql/migrations/config.json -e prod

    Checked locally: packed the package, installed the tarball in an empty app with a .env (MYSQL_*), ran that command against a temporary MySQL: the 4 migrations ran and cues.extra is a JSON column.

resetInteractidonsByIds() is back, deprecated

0.0.45 renamed it to resetInteractionsByIds(); lni-votes called the old name twice. The alias calls the new method and warns once per app with logger.warn() (skipped if the logger has no warn). Tested in Application.test.js.

Release

Two patch changesets. Merging the "Version packages" PR that follows publishes 0.0.46.

npm run format:check, npm run lint, npm run build, npm test pass locally (144 passed, 6 skipped: MySQL/Pingpong).

🤖 Generated with Claude Code

@cuecue/store-mysql only published dist, so apps couldn't run the
migrations (the 0.0.45 extra column) from node_modules. The package now
ships migrations/, with a README that gives the settings and the
db-migrate command an app runs. test/packages.test.js checks that npm
pack includes every migration.

0.0.45 renamed Application#resetInteractidonsByIds() to
resetInteractionsByIds(), which broke apps that call the old name. It
comes back as a deprecated alias that warns once with logger.warn().

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@phatshambler
phatshambler merged commit 19f5e1a into develop Nov 17, 2026
4 checks passed
@phatshambler
phatshambler deleted the fix/store-mysql-migrations-and-alias branch November 17, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant